﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace paipai
{
    public partial class UserUI : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(Session["UserID"] == null)
            {
                Lb_Login.Text = "<a href = 'Login.aspx'>LOGIN</a>";
                Lb_Reg.Text = "<a href = 'Regist.aspx'>REG</a>";
            }
            else
            {
                var UserID = Session["UserID"].ToString();
                var firstName = Bll.CUserBasicManage.GetBasicUser(UserID).firstName;
                Lb_Login.Text = firstName;
                Lb_Reg.Text = "<a href = 'Login.aspx'>LOGOUT</a>";
            }
        }
    }
}